import yaml


def assert_all_pass(results: list[dict]):
    if sum(1 for r in results if r['status'] == 'pass') != len(results):
        data = yaml.safe_dump(results)
        raise AssertionError('\n' + data)